import Vue from 'vue';
import Router from 'vue-router';
import HelloWorld from '@/components/HelloWorld';
import Am from '@/views/am.vue';

Vue.use(Router);

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/am',
      name: 'Am',
      component: Am
    },
    {
      path:'/',
      redirect:'/am'
    }
  ]
});
